import React, {Component} from 'react';
import Child from "./Child";

// 父组件
class Parent extends Component {
  render() {
    return (
      <div style={{backgroundColor: "red", padding: "10px"}}>
        父组件
        <Child name="aBadString">hello, Child</Child>
      </div>
    );
  }
}

export default Parent;